package com.gift.dao;

import com.gift.pojo.UserTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTableMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(UserTable record);

    int insertSelective(UserTable record);

    UserTable selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(UserTable record);

    int updateByPrimaryKey(UserTable record);

    int checkName(String loginName);


    UserTable login(@Param("userName") String userName, @Param("passWord") String passWord);

    int checkEmail(String eamil);

    List<UserTable> getAll();


}